package com.mingqijia.gassafety.shared.constant;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @author: duanhongxiang
 * @Desc:
 * @create: 2024-12-05 13:10
 **/
@Getter
@RequiredArgsConstructor
public enum ThreeQuotientStatEnum {
    STATUS_1("1", "待处理"),
    STATUS_2("2", "分单"),
    STATUS_3("3", "作废"),
    STATUS_4("4", "派单"),
    STATUS_5("5", "接单"),
    STATUS_8("8", "处理完成"),
    STATUS_9("9", "无法修复"),
    STATUS_10("10", "结案"),
    STATUS_11("11", "接收"),
    STATUS_12("12", "驳回"),
    STATUS_13("13", "审核通过"),
    STATUS_17("17", "审核不通过"),
    STATUS_18("18", "转维修"),;

    private final String status;
    private final String name;

    public static String getStateName(String status) {
        if (status == null) {
            return null;
        }
        for (ThreeQuotientStatEnum mbpStateEnum : ThreeQuotientStatEnum.values()) {
            if (mbpStateEnum.status.equals(status)) {
                return mbpStateEnum.name;
            }
        }
        return null;
    }
}
